<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<include file="Public:meta" />
</head>
<body id="main_page">
<include file="Public:position" />
<div class="container">
    <div class="box">
        <form action="{$Action}" method="post" id="frmAdd" enctype="multipart/form-data">
            <div class="box-header"><h4>基本信息</h4></div>
            <div class="box-content">
                <table class="boxtable">
                    <tr>
                        <th>客户名称</th>
                        <td>
                            <select name="CustomerID">
                                <option value="0" selected="selected">====暂不指定客户====</option>
                                <volist name="CustomerData" id="c">
                                    <option value="{$c.MemberID}">
                                        {$c.MemberID}&nbsp;&nbsp;{$c.MemberName}&nbsp;&nbsp;{$c.MemberRealName}
                                        <neq name="c.MemberGroupID" value="101">&nbsp;&nbsp;{$c.MemberGroupName}</neq>
                                    </option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>授权域名</th>
                        <td><input type="text" class="textinput" style="width:250px" name="Host" id="Host" value=""  />
                        <span class='Caution'>如：www.baidu.com，不要以http://开头</span>
                        </td>
                    </tr>
                   <tr>
                        <th>操作系统</th>
                        <td><input type="text" class="textinput" style="width:150px" name="OS" value="WINNT"  />
                        <span class='Caution'>如：WINNT、Linux</span>
                        </td>
                    </tr>
                    <tr>
                        <th>软件版本</th>
                        <td><input type="text" class="textinput" style="width:150px" name="Version" value="{$CMSVersion}" />
                        <span class='Caution'>表示当前客户使用的软件版本，如：6.6、6.7.2</span>
                        </td>
                    </tr>
                    <tr>
                        <th>OEM名称</th>
                        <td><input type="text" class="textinput" style="width:150px" name="OEM" value="" />
                        <span class='Caution'>如果客户不是OEM，请留空</span>
                        </td>
                    </tr>
                     <tr>
                        <th>授权时间</th>
                        <td><input type="text" class="textinput Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})"  style="width:150px" name="AuthorizeTime" value="{:date('Y-m-d H:i:s')}"  /></td>
                    </tr>
                    <tr>
                        <th>是否授权</th>
                        <td>
                            <label><input type="radio" name="IsAuthorize" value="1" checked="checked" />是</label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <label><input type="radio" name="IsAuthorize" value="0"  />否</label>
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td><textarea class="w450" style="height:85px; width:100%;" name="Remark"></textarea></td>
                    </tr>
                </table>
        	</div>

            <div class="box-footer">
                <div class="box-footer-inner">
                    <input  id="btnSubmit" class="marginright" type="submit"  value="保存并继续添加" />
                    <input  id="btnSubmit"  type="button" value="返回" class="GoBack"  onclick="GoBack()" />
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
<script type="text/javascript" src="{$WebPublic}My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#frmAdd').ajaxForm({
		success: complete,
		dataType: 'json'
	});
	
	function complete(data){
		CloseLoadBox();
		if (data.status==1){
			SucceedBox(data.info);
			$('#frmAdd').resetForm();
			$('#Host').focus();
		}else if(data.status==0){
			ErrorBox(data.info);
		}else if(data.status==2){
			ErrorBox(data.info); //上传失败
		}else if(data.status==3){
			$('#'+data.data.ImageField).val(data.data.Path);
			SucceedBox(data.info); //上传成功
		}
	};
	
	 $('#frmAdd').submit(function(){
		LoadBox();
		return false;  //为了防止普通浏览器进行表单提交和产生页面导航（防止页面刷新？）返回false  
	 });
	 
	 $('#btnSubmit').click(function(){
		$('#frmAdd').attr('action','{$Action}');
	 });
	 
	 $('#Host').focus();
	 
});
</script>